Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute "COMMAND" command only when readonly #2815

Merged
merged 6 commits into from
Dec 17, 2023

Conversation

ofekshenawa
Copy link
Collaborator

Whenever a new client connection is established, the client has been excessively sending a "COMMAND" command, even when it's not necessary. I've made a modification so that the "COMMAND" command will only be executed when the ReadOnly attribute in ClusterOptions is set to True.

The ReadOnly attribute enables the execution of read-only commands on slave nodes. This change ensures that the "COMMAND" command is used more efficiently and only when required.

@chayim chayim added the bug label Nov 30, 2023
@ofekshenawa ofekshenawa marked this pull request as ready for review November 30, 2023 09:09
@ofekshenawa
Copy link
Collaborator Author

@monkey92t, @vmihailenco, would one of you be able to review this, please?

@ofekshenawa ofekshenawa merged commit 86c68be into master Dec 17, 2023
9 checks passed
@ofekshenawa ofekshenawa deleted the os-execute-command-only-on-readonly branch June 19, 2024 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants